home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / sky-chopper.swf / scripts / frame_336 / PlaceObject2_1608_107 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2005-09-29  |  489 b   |  20 lines

  1. onClipEvent(enterFrame){
  2.    if(this._name != "b2_bomber")
  3.    {
  4.       if(framesCount++ >= 400)
  5.       {
  6.          moveHow = "zipoff";
  7.       }
  8.       if(this._x > _root.heli._x + 40 && this._y <= _root.heli._y + 20 && this._y >= _root.heli._y - 20 || random(20) == 2)
  9.       {
  10.          _root.enemyShoot(weapon,this);
  11.       }
  12.       _root.moveEnemy(this,moveHow);
  13.       if(checkCol++ >= 1)
  14.       {
  15.          checkCol = 0;
  16.          _root.checkEnemyCollision(this);
  17.       }
  18.    }
  19. }
  20.